package io.gitee.zhangbinhub.admin.po

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.noear.solon.validation.annotation.NotBlank
import org.noear.solon.validation.annotation.NotNull

@ApiModel("运行配置参数")
data class RuntimePo(
    @ApiModelProperty(name = "配置ID，更新时必填")
    var id: String? = null,
    @ApiModelProperty(name = "名称，查询时可为空", required = true)
    @field:NotBlank(message = "参数名称不能为空")
    var name: String? = null,
    @ApiModelProperty(name = "值")
    var value: String? = null,
    @ApiModelProperty(name = "描述")
    var configDes: String? = null,
    @ApiModelProperty(name = "是否启用，查询时可为空", required = true)
    @field:NotNull(message = "是否启用不能为空")
    var enabled: Boolean? = null
)
